package com.liangge.essaysite.service.impl;

import java.util.List;

import com.liangge.essaysite.bean.Category;
import com.liangge.essaysite.dao.CategoryDao;
import com.liangge.essaysite.service.CategoryService;

public class CategoryServiceImpl implements CategoryService {
	private CategoryDao categoryDao;
	public void setCategoryDao(CategoryDao categoryDao) {
		this.categoryDao = categoryDao;
	}
	@Override
	public int insertCategory(Category category) {
		return categoryDao.insertCategory(category);
	}
	@Override
	public List<Category> selectCategoryList() {
		return categoryDao.selectCategoryList();
	}
	
}
